package com.ruoyi.notification.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.notification.mapper.NotificationSmsLogMapper;
import com.ruoyi.notification.domain.NotificationSmsLog;
import com.ruoyi.notification.service.INotificationSmsLogService;

/**
 * 短信通知日志Service业务层处理
 *
 * @author Darwin
 * @date 2024-10-08
 */
@Service
@DataSource(DataSourceType.SMS)
public class NotificationSmsLogServiceImpl implements INotificationSmsLogService
{
    @Autowired
    private NotificationSmsLogMapper notificationSmsLogMapper;

    /**
     * 查询短信通知日志
     *
     * @param uuid 短信通知日志主键
     * @return 短信通知日志
     */
    @Override
    public NotificationSmsLog selectNotificationSmsLogByUuid(String uuid)
    {
        return notificationSmsLogMapper.selectNotificationSmsLogByUuid(uuid);
    }

    /**
     * 查询短信通知日志列表
     *
     * @param notificationSmsLog 短信通知日志
     * @return 短信通知日志
     */
    @Override
    public List<NotificationSmsLog> selectNotificationSmsLogList(NotificationSmsLog notificationSmsLog)
    {
        return notificationSmsLogMapper.selectNotificationSmsLogList(notificationSmsLog);
    }

    /**
     * 新增短信通知日志
     *
     * @param notificationSmsLog 短信通知日志
     * @return 结果
     */
    @Override
    public int insertNotificationSmsLog(NotificationSmsLog notificationSmsLog)
    {
        return notificationSmsLogMapper.insertNotificationSmsLog(notificationSmsLog);
    }

    /**
     * 修改短信通知日志
     *
     * @param notificationSmsLog 短信通知日志
     * @return 结果
     */
    @Override
    public int updateNotificationSmsLog(NotificationSmsLog notificationSmsLog)
    {
        return notificationSmsLogMapper.updateNotificationSmsLog(notificationSmsLog);
    }

    /**
     * 批量删除短信通知日志
     *
     * @param uuids 需要删除的短信通知日志主键
     * @return 结果
     */
    @Override
    public int deleteNotificationSmsLogByUuids(String[] uuids)
    {
        return notificationSmsLogMapper.deleteNotificationSmsLogByUuids(uuids);
    }

    /**
     * 删除短信通知日志信息
     *
     * @param uuid 短信通知日志主键
     * @return 结果
     */
    @Override
    public int deleteNotificationSmsLogByUuid(String uuid)
    {
        return notificationSmsLogMapper.deleteNotificationSmsLogByUuid(uuid);
    }
}
